package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 字典数据业务对象 sys_dict_data
 *
 * @author ruoyi
 * @date 2023-11-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysDictDataBo extends BaseEntity {

    /**
     * 字典编码
     */
    @NotNull(message = "字典编码不能为空", groups = { EditGroup.class })
    private Long dictCode;

    /**
     * 字典排序
     */
    @NotNull(message = "字典排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer dictSort;

    /**
     * 字典标签
     */
    @NotBlank(message = "字典标签不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dictLabel;

    /**
     * 字典键值
     */
    @NotBlank(message = "字典键值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dictValue;

    /**
     * 字典类型
     */
    @NotBlank(message = "字典类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dictType;

    /**
     * 样式属性（其他样式扩展）
     */
    @NotBlank(message = "样式属性（其他样式扩展）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cssClass;

    /**
     * 表格回显样式
     */
    @NotBlank(message = "表格回显样式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String listClass;

    /**
     * 是否默认（Y是 N否）
     */
    @NotBlank(message = "是否默认（Y是 N否）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isDefault;

    /**
     * 状态（0正常 1停用）
     */
    @NotBlank(message = "状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
